set sn=%1
hdc -t %sn% shell "cat /sys/devices/system/cpu/online"
hdc -t %sn% shell "cat /sys/class/power_supply/Battery/capacity"

@REM 锁小核
hdc -t %sn% shell "echo 1 > /sys/devices/system/cpu/cpu0/online"
hdc -t %sn% shell "echo 1 > /sys/devices/system/cpu/cpu1/online"
hdc -t %sn% shell "echo 1 > /sys/devices/system/cpu/cpu2/online"
hdc -t %sn% shell "echo 1 > /sys/devices/system/cpu/cpu3/online"

@REM 锁中核
hdc -t %sn% shell "echo 1 > /sys/devices/system/cpu/cpu4/online"
hdc -t %sn% shell "echo 1 > /sys/devices/system/cpu/cpu5/online"
hdc -t %sn% shell "echo 1 > /sys/devices/system/cpu/cpu6/online"
hdc -t %sn% shell "echo 1 > /sys/devices/system/cpu/cpu7/online"
hdc -t %sn% shell "echo 1 > /sys/devices/system/cpu/cpu8/online"
hdc -t %sn% shell "echo 1 > /sys/devices/system/cpu/cpu9/online"

@REM @REM 锁大核
hdc -t %sn% shell "echo 1 > /sys/devices/system/cpu/cpu10/online"
hdc -t %sn% shell "echo 1 > /sys/devices/system/cpu/cpu11/online"


@REM 设置各个核心的频率
hdc -t %sn% shell "echo 1530000>  /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
hdc -t %sn% shell "echo 1530000>  /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq"
hdc -t %sn% shell "echo 1530000>  /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"

hdc -t %sn% shell "echo 1530000>  /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq"
hdc -t %sn% shell "echo 1530000>  /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq"
hdc -t %sn% shell "echo 1530000>  /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq"

hdc -t %sn% shell "echo 1530000>  /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq"
hdc -t %sn% shell "echo 1530000>  /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq"
hdc -t %sn% shell "echo 1530000>  /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq"

hdc -t %sn% shell "echo 1530000>  /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq"
hdc -t %sn% shell "echo 1530000>  /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq"
hdc -t %sn% shell "echo 1530000>  /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq"


hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq"
hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq"
hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq"

hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq"
hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq"
hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq"

hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq"
hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq"
hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq"

hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq"
hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq"
hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq"

hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu8/cpufreq/scaling_max_freq"
hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu8/cpufreq/scaling_min_freq"
hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu8/cpufreq/scaling_max_freq"

hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu9/cpufreq/scaling_max_freq"
hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu9/cpufreq/scaling_min_freq"
hdc -t %sn% shell "echo 2150000>  /sys/devices/system/cpu/cpu9/cpufreq/scaling_max_freq"

hdc -t %sn% shell "echo 2620000>  /sys/devices/system/cpu/cpu10/cpufreq/scaling_max_freq"
hdc -t %sn% shell "echo 2620000>  /sys/devices/system/cpu/cpu10/cpufreq/scaling_min_freq"
hdc -t %sn% shell "echo 2620000>  /sys/devices/system/cpu/cpu10/cpufreq/scaling_max_freq"

hdc -t %sn% shell "echo 2620000>  /sys/devices/system/cpu/cpu11/cpufreq/scaling_max_freq"
hdc -t %sn% shell "echo 2620000>  /sys/devices/system/cpu/cpu11/cpufreq/scaling_min_freq"
hdc -t %sn% shell "echo 2620000>  /sys/devices/system/cpu/cpu11/cpufreq/scaling_max_freq"

hdc -t %sn% shell "cat /sys/devices/system/cpu/online"
hdc -t %sn% shell "cat /sys/class/power_supply/Battery/capacity"
